<!DOCTYPE html>
<!--html ng-app = "ReaderApp"-->
<html>
  <head>
    <title>Rex Reader</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="lib/angular.min.js"></script>
    <script src="lib/angular-route.js"></script>
      
    
    <script src="script/Utility/UtilityModule.js"></script>
    <script src="script/Service/DataService.js"></script>
    <script src="script/Controller/AppController.js"></script>
    <script src="script/Controller/MainController.js"></script>
    <script src="script/Controller/StockController.js"></script>
    <script src="script/Controller/WeatherController.js"></script>
    <script src="script/View/DirectiveModule.js"></script>
    <script src="script/app.js"></script>
    
    <link href="style/style.css" rel="stylesheet">
  </head>
  <body>
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Rex Reader</a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">Home</a></li>
            <li><a href="#settings">Settings</a></li>
            <li><a href="#about">About</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>

    <div class="container" ng-controller="AppCtrl">
        <div id="wait" rextoy-wait="show"></div>

        <div class="col-sm-12 col-md-4" style="border-bottom: 1px solid #777">
            <div class="carousel slide" data-ride="carousel" ng-controller="StockCtrl">
                <!-- Wrapper for slides -->
                <div class="carousel-inner">
                    <div class="item" ng-class="{active: $index==0}" ng-repeat="stock in stocks">
                        <!--div class="thumbnail"-->
                            <div class="caption">
                                <h3>{{stock.symbol}}</h3>
                                <h4>{{stock.LastTradePriceOnly}}<span ng-class="(stock.Change>0) ? 'stock-red' : 'stock-green'">({{stock.Change}}%)</span></h4>
                                <p>{{stock.DaysRange}}</p>
                            </div>
                        <!--/div-->
                    </div>
                </div>
            </div>
        </div>

        <div class="col-sm-12 col-md-4" ng-controller="WeatherCtrl">
            
            <div class="caption">
                <h3>{{weather.title}}</h3>
                <p ng-bind-html="html"></p>                
            </div>
            <div class="carousel slide" data-ride="carousel">
                <!-- Wrapper for slides -->
                <div class="carousel-inner">
                    <div class="item" ng-class="{active: $index==0}" ng-repeat="forecast in forecasts">
                        <div class="thumbnail">
                            <div class="caption">
                                <b>{{forecast.date}} - {{forecast.text}}</b>
                                <p>{{forecast.low}} ~ {{forecast.high}}</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        

        <div ng-view></div>
    </div><!-- /.container -->
    
    <script src="lib/jquery.js"></script>
    <script src="lib/bootstrap.min.js"></script>
    <script src="lib/spin.min.js"></script>
    
    <script>
        angular.bootstrap(document, ['ReaderApp']);
    </script>
  </body>
</html>